package com.xjk.education.service.impl;

import java.util.List;
import com.xjk.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xjk.education.mapper.EduCourseInformationMapper;
import com.xjk.education.domain.EduCourseInformation;
import com.xjk.education.service.IEduCourseInformationService;

/**
 * 个人课表查询Service业务层处理
 * 
 * @author xjk
 * @date 2024-08-01
 */
@Service
public class EduCourseInformationServiceImpl implements IEduCourseInformationService 
{
    @Autowired
    private EduCourseInformationMapper eduCourseInformationMapper;

    /**
     * 查询个人课表查询
     * 
     * @param dataId 个人课表查询主键
     * @return 个人课表查询
     */
    @Override
    public EduCourseInformation selectEduCourseInformationByDataId(Long dataId)
    {
        return eduCourseInformationMapper.selectEduCourseInformationByDataId(dataId);
    }

    /**
     * 查询个人课表查询列表
     * 
     * @param eduCourseInformation 个人课表查询
     * @return 个人课表查询
     */
    @Override
    public List<EduCourseInformation> selectEduCourseInformationList(EduCourseInformation eduCourseInformation)
    {
        return eduCourseInformationMapper.selectEduCourseInformationList(eduCourseInformation);
    }

    /**
     * 新增个人课表查询
     * 
     * @param eduCourseInformation 个人课表查询
     * @return 结果
     */
    @Override
    public int insertEduCourseInformation(EduCourseInformation eduCourseInformation)
    {
        eduCourseInformation.setCreateTime(DateUtils.getNowDate());
        return eduCourseInformationMapper.insertEduCourseInformation(eduCourseInformation);
    }

    /**
     * 修改个人课表查询
     * 
     * @param eduCourseInformation 个人课表查询
     * @return 结果
     */
    @Override
    public int updateEduCourseInformation(EduCourseInformation eduCourseInformation)
    {
        eduCourseInformation.setUpdateTime(DateUtils.getNowDate());
        return eduCourseInformationMapper.updateEduCourseInformation(eduCourseInformation);
    }

    /**
     * 批量删除个人课表查询
     * 
     * @param dataIds 需要删除的个人课表查询主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseInformationByDataIds(Long[] dataIds)
    {
        return eduCourseInformationMapper.deleteEduCourseInformationByDataIds(dataIds);
    }

    /**
     * 删除个人课表查询信息
     * 
     * @param dataId 个人课表查询主键
     * @return 结果
     */
    @Override
    public int deleteEduCourseInformationByDataId(Long dataId)
    {
        return eduCourseInformationMapper.deleteEduCourseInformationByDataId(dataId);
    }
}
